-- world - "boat"

function autoexec()
  return
end

function refresh()
  return
end

function postexec()
  return
end

function zone_handler(zn)
  if (zn == 1) then
   thought(HERO1,"You climb up the ladder. Only to be yelled at by the crew.");
   bubble(HERO1,"Fine, then I'll stay down here.");
         bubble(255,"Thanks for playing my game!! This is the end of version 0.0.3.");
         bubble(255,"Email Comments to z9484@virtualkingdoms.net");
         
    elseif (zn == 2) then
      if (prompt(255,2,0,"Do you want to sleep?","  yes","  no","") == 0) then
        for a=0,get_numchrs()-1,1 do
        set_party_hp(a,get_party_mhp(a));
        set_party_mp(a,get_party_mmp(a));
        end
      inn("House",0,0);
    end
  
     elseif (zn == 3) then
      
        
    elseif (zn == 4) then
      book_talk(get_pidx(0));

    elseif (zn == 5) then
      thought(HERO1,"You peer into the bilge...");
      bubble(HERO1,"EEEK!! A FILTHY BILGE RAT!");

    elseif (zn == 7) then
      thought(HERO1,"You rifle through the first mate's dresser... But find nothing of worth.");
        
    elseif (zn == 8) then
      thought(HERO1,"Its locked.");
        
    elseif (zn == 9) then
      thought(HERO1,"It's empty because I havent put anything in there.");

    elseif (zn == 10) then
      thought(HERO1,"The sign reads:",
                                "The Sailors Code",
                                "Never run on the ship unless when needed. Never play hide-and-seek in the Bilge. And never drink the Captain's Grog.");
       end
      end
      
 function entity_handler(en)
  if (en == 0) then
     bubble(0,"Snort *rip* Gulp.");
     bubble(0,"Yumm...");

  elseif (en == 1) then 
      bubble(1,"Seafood isnt bad, but the scurvy is. Thats why we eat a lot of fruit.");

  elseif (en == 2) then
      bubble(2,"Its always nice to sit back and play a game of cards when your off-watch.");

  elseif (en == 3) then
      bubble(3,"zzz... not bow watch again?! zzz...");
      bubble(3,"Shades I hate swabbing the deck... zzz...");   

  elseif (en == 4) then
      bubble(4,"Zzz....");

  elseif (en == 5) then
      bubble(5,"Hello.");
      bubble(HERO1,"Greetings. So where exactly are we going?");
      bubble(5,"Were going to the southern part of the Island of Keros.");
      bubble(HERO1,"What can you tell me about Keros?");
      bubble(5,"Well legends say Keros used to be attached to our Island. They go on to say that in a momentous battle that the accursed Lanerions started, the Island split in half! Since then our ownly contacts with Keros deal with trading.");
      bubble(HERO1,"Thanks for the info.");
  
                      
elseif (en == 6) then
      bubble(6,"Zzz....");
     end
     end
